package com.WJY.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    private String teacherName;
    private Course[] courseArr;
    private List<Student> studentList;

    public void teach() {
        System.out.println("teacherName=>" + teacherName + ",courseArr=>" + Arrays.toString(courseArr) + ",studentList=>" + studentList);
    }
}
